src = $(wildcard *.c)
target = $(patsubst %.c,%,$(src))

.PHONY: all clean
	
%:%.c
	${CC} $^ -o $@
	
all: ${target}

clean:
	rm -f ${target}
